package com.haixiaoke.saas.repository.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haixiaoke.saas.repository.pojo.ApartmentItemRuleRef;
import com.haixiaoke.saas.repository.pojo.House;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 账单生成规则对象 biz_apartment_bill_rule
 *
 * @author qixi
 * @date 2023-06-16
 */
@Data
public class ApartmentBillRuleVo extends House {


    /** id */
    private Long ruleId;

    /** 订单id */
    private String orderId;

    /** 房屋id */
    private String houseId;
    /**
     * 付几月
     */
    private Long payMonth;

    /** 账单结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    /** 账单生成日期 */
    private Integer billCreateDate;

    /** 账单最后生成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date billLastTime;

    /** 账单缴费截止日期 */
    private Integer closeTime;

    /**
     * 预定人手机号
     */
    private String reservationPhone;

    /**
     * 预定人名称
     */
    private String reservationName;

    /**
     * 预定人id
     */
    private String reservationId;

    /**
     * 账单生成收费项目关联关系
     */
    private List<ApartmentItemRuleRef> refs;
}
